package org.xw.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.xw.pojo.GzhArticlePojo;

import java.util.List;

@Mapper
public interface GzhArticleMapper {

    GzhArticlePojo searchArticle(Integer id);

    int publishArticle(GzhArticlePojo gzhArticlePojo);

    boolean deleteArticle(GzhArticlePojo articlePojo);

    boolean updateArticle(GzhArticlePojo gzhArticlePojo);

    List<GzhArticlePojo> getGzhArticleList(Integer gzhId);//article的status=1

    List<GzhArticlePojo> getMyGzhArticleList(Integer gzhId);//article的status=0/1/2
}
